﻿<Window x:Class="Sample.NewOrderWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:EcngTradingXaml="clr-namespace:StockSharp.Xaml;assembly=StockSharp.Xaml"
	Title="NewOrderWindow" ShowInTaskbar="False" SizeToContent="WidthAndHeight">
    <Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="70" />
			<ColumnDefinition Width="120" />
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="30" />
		</Grid.RowDefinitions>

		<!--<Label Grid.Column="0" Grid.Row="0" Content="Счет:" />
		<EcngTradingXaml:PortfolioComboBox x:Name="Portfolio" Grid.Column="1" Grid.Row="0" />-->
        <Label Content="Portfolio:" Grid.Row="0" />
        <ComboBox Grid.Column="2" Grid.Row="0" Height="25" HorizontalAlignment="Left" Name="x_Portfolio" VerticalAlignment="Top" Width="137" SelectedIndex="0" />
        <Label Content="Security:" Grid.Row="1" ToolTip="Инструмент, которым управляет Робот" />
        <ComboBox Grid.Column="1" Grid.Row="1" Height="25" HorizontalAlignment="Left" Name="x_Security" VerticalAlignment="Top" Width="120"  SelectedIndex="0"/>

        <Label Grid.Column="0" Grid.Row="2" Content="Цена:" />
		<TextBox x:Name="x_Price" Grid.Column="1" Grid.Row="2" Text="0" TextAlignment="Right" />
				
		<Label Grid.Column="0" Grid.Row="3" Content="Объем:" />
		<TextBox x:Name="x_Volume" Grid.Column="1" Grid.Row="3" Text="0" TextAlignment="Right" />
		
		<RadioButton x:Name="x_IsBuy" Content="Покупка" GroupName="Direction" IsChecked="True" Grid.Column="1" Grid.Row="4" />
		<RadioButton x:Name="IsSell" Content="Продажа" GroupName="Direction" Grid.Column="1" Grid.Row="5" />
		
		<Button x:Name="Send" Content="Отправить" IsDefault="True" Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="2" Width="100" Height="22" Click="SendClick" />
	</Grid>
</Window>
